<template>
  <div>
    <h1>校园二手交易平台 - 首页</h1>
    <p>欢迎来到校园二手交易平台，您可以浏览商品或登录进行交易。</p>
    <el-button @click="goToLogin">登录</el-button>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router';

const router = useRouter();

const goToLogin = () => {
  router.push({ name: 'Login' });
};
</script>

<style scoped>
</style>    